package java6.src.chapter06.E14;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
public class E14 {
    public static void main(String[] args) {
        HashMap map = new HashMap();
        map.put("202304010601","张三");
        map.put("202304010601","李四");
        map.put("202304010602","赵六");
        System.out.println(map);
        // 取出 Key值队列 用来迭代
        Set Ks = map.keySet();
        Iterator it = Ks.iterator();// 抽出的key队列用迭代器
        while (it.hasNext()){
            Object obj = it.next();
 //           System.out.println(obj);
            System.out.println("学号"+obj+":"+map.get(obj));
        }
    }
}
